PROJECT(CONEX-Control)

#add the files to our groups and core
SOURCE_GROUP("control" ./control/*)
#seems to be a bug in cmake, can't put these in analysis\\standard folder :(
#control detail

SET(CONEX-Control_Files
	#for example 
	#./control/ControlSynset.cpp	
	./control/VocabularyControl.cc	
	./control/VocabularyXmlControl.cc	
	./control/TermControl.cc
	./control/ClassifierControl.cc
)


#find our headers
file(GLOB_RECURSE HEADERS ${CONEX-Control_SOURCE_DIR}/*.h)


#create the libraries
INCLUDE_DIRECTORIES( ${CONEX_SOURCE_DIR}/src/control
                     ${CONEX_SOURCE_DIR}/src/model 
					 ${CONEX_SOURCE_DIR}/src/util 
                     ${CONEX_SOURCE_DIR}/src/dal
					 ${CONEX_SOURCE_DIR}/src/ternary_tree)

#add_executable(CONEX-App
#	${CONEX-App_Files} ${HEADERS}
#)

add_library(CONEX-Control
    STATIC
	 ${CONEX-Control_Files} ${HEADERS}
	)

#set properties on the libraries
SET_TARGET_PROPERTIES(CONEX-Control PROPERTIES
    VERSION ${CONEX_VERSION}
    SOVERSION ${CONEX_SOVERSION}
    COMPILE_DEFINITIONS_DEBUG _DEBUG
)

#SET_TARGET_PROPERTIES( CONEX-Model PROPERTIES COMPILE_FLAGS "${CONEX_SOURCE_DIR}/src/dal/dal/otlv4.h" )
#SET_TARGET_PROPERTIES( CONEX-Model PROPERTIES LINK_FLAGS "odbc32.lib" )



